﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - IVBlog的后台管理界面</title>
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/css/site.css" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
    <!-- layui -->
    <link href="~/layui/css/layui.css" rel="stylesheet" />
    <!-- 浏览器标签上显示的图标 -->
    <link rel="icon" type="image/ico" href="~/img/IV.ico">
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black" style="background-color: #009688 !important">后台管理</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 移动端显示 -->
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                    <i class="layui-icon layui-icon-spread-left"></i>
                </li>

                <li class="layui-nav-item layui-hide-xs"><a asp-controller="Back" asp-action="Index"><i class="layui-icon layui-icon-home"></i>首页</a></li>
                <li class="layui-nav-item layui-hide-xs"><a asp-controller="Home" asp-action="Index">返回博客首页</a></li>
                <!--<li class="layui-nav-item layui-hide-xs"><a href="">nav 3</a></li>
                <li class="layui-nav-item">
                    <a href="javascript:;">nav groups</a>
                    <dl class="layui-nav-child">
                        <dd><a href="">menu 11</a></dd>
                        <dd><a href="">menu 22</a></dd>
                        <dd><a href="">menu 33</a></dd>
                    </dl>
                </li>-->
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a href="javascript:;">
                        <img src="~/img/IV.png" class="layui-nav-img">
                        Admin
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="/Personal/Info">我的信息</a></dd>
                        @*<dd><a href="">设置</a></dd>*@
                        <dd><a href="/Personal/SignOut">登出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:;">文章管理</a>
                        <dl class="layui-nav-child">
                            <dd><a asp-controller="Back" asp-action="ArticleList">
                                    <i class="layui-icon layui-icon-list"></i>文章列表</a></dd>
                            <dd><a asp-controller="Back" asp-action="AddArticle">
                                    <i class="layui-icon layui-icon-edit"></i>写文章</a></dd>
                            
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a href="javascript:;">分类管理</a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a asp-controller="Back" asp-action="TypeList">
                                    <i class="layui-icon layui-icon-file"></i>类别列表
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a href="javascript:;">评论管理</a>
                        <dl class="layui-nav-child">
                            <dd><a asp-controller="Back" asp-action="Remark">
                                    <i class="layui-icon layui-icon-dialogue"></i>评论列表</a></dd>
                            <dd>
                                <a asp-controller="Back" asp-action="ReplyList">
                                    <i class="layui-icon layui-icon-dialogue"></i>回复列表
                                </a>
                            </dd>
                            <dd><a asp-controller="Back" asp-action="DyRemark">
                                    <i class="layui-icon layui-icon-dialogue"></i>留言板</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a href="javascript:;">动态管理</a>
                        <dl class="layui-nav-child">
                            <dd><a asp-controller="Back" asp-action="DynamicList">
                                    <i class="layui-icon layui-icon-reply-fill"></i>动态列表</a></dd>
                            <dd><a asp-controller="Back" asp-action="DynamicAdd">
                                    <i class="layui-icon layui-icon-edit"></i>写动态</a></dd>
                        </dl>
                    </li>
                    @*<li class="layui-nav-item"><a href="javascript:;">页面管理</a></li>*@
                    @*<li class="layui-nav-item"><a href="">设置</a></li>*@
                </ul>
            </div>
        </div>

        <div class="layui-body container">
            <!-- 内容主体区域 -->
            <main role="main" class="pb-3" style="padding: 15px;" id="mainContent">
                @RenderBody()
            </main>
        </div>

        <div class="layui-footer">
            <!-- 底部固定区域 -->
            <div class="pio-container right">
                <div class="pio-action"></div>
                <canvas id="pio" width="200" height="250"></canvas>
            </div>
            &copy;备案号：<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">湘ICP备2022023302号-1</a>
            &nbsp;&nbsp;
            服务支持：<a href="https://www.aliyun.com/" target="_blank">阿里云</a>
        </div>
    </div>

    <!-- layui -->
    <script src="~/layui/layui.js"></script>
    <!-- layui start-->
    <script>
        //JS
        layui.use(['element', 'layer', 'util'], function () {
            var element = layui.element
                , layer = layui.layer
                , util = layui.util
                , $ = layui.$;

            //头部事件
            util.event('lay-header-event', {
                //左侧菜单事件
                menuLeft: function (othis) {
                    layer.msg('展开左侧菜单的操作', { icon: 0 });
                }
                , menuRight: function () {
                    layer.open({
                        type: 1
                        , content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                        , area: ['260px', '100%']
                        , offset: 'rt' //右上角
                        , anim: 5
                        , shadeClose: true
                    });
                }
            });

        });
    </script>
    <!-- layui end-->



    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>

    @RenderSection("Scripts", required: false)

    <!--看板娘相关-->
    @*<link href="~/live2d-banner/css/pio.css" rel="stylesheet" />
    <script src="~/live2d-banner/js/l2d.js"></script>
    <script src="~/live2d-banner/js/pio.js"></script>

    <script>
        var pio = new Paul_Pio({
            "mode": "fixed",
            "tips": true,
            "hidden": true,
            "content": {
                "welcome": ["欢迎来到IV的网站！", "博主每天都有些折腾记录，欢迎前往他的小窝阅读~"],
            },
            "model": [
                "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
                "https://unpkg.com/live2d-widget-model-bilibili@1.0.1/assets/22/model.default.json",
                "https://unpkg.com/live2d-widget-model-bilibili@1.0.1/assets/33/model.default.json",
                "https://unpkg.com/live2d-widget-model-mikoto@1.0.0/assets/mikoto.model.json",
                "https://unpkg.com/live2d-widget-model-haru@1.0.5/01/assets/haru01.model.json",
                "https://unpkg.com/live2d-widget-model-haru@1.0.5/02/assets/haru02.model.json"
            ]
        });
    </script>*@
    <!--看板娘相关-->

    <script>
        function MasterPageJump(Url) {
            $.ajax({
                url: Url,
                type: "GET",
                success: function (response) {
                    $('#mainContent').html(response);
                }
            });
        }
    </script>
</body>
</html>

